﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Fcdbas.Core.WCF.TransFile.Contracts.Enums;

namespace Fcdbas.Core.WCF.TransFile.Contracts.Models
{
    [DataContract]
    public class LoadFileInfoModel
    {
        /// <summary>
        /// 加载类型
        /// </summary>
        private LoadType _LoadType= LoadType.UpLoad;

        public LoadType LoadType
        {
            get { return _LoadType; }
            set { _LoadType = value; }
        }

        ///// <summary>
        ///// 文件名称
        ///// </summary>
        //public string FileName ;

        /// <summary>
        /// 文件名称
        /// </summary>
        private string _FileTitle;
        [DataMember]
        public string FileTitle
        {
            get { return _FileTitle; }
            set { _FileTitle = value; }
        }

        /// <summary>
        /// 扩展名
        /// </summary>
        private string _Extension;
        [DataMember]
        public string Extension
        {
            get { return _Extension; }
            set { _Extension = value; }
        }

        /// <summary>
        /// 文件大小 b
        /// </summary>
        private long _FileSize;
        [DataMember]
        public long FileSize
        {
            get { return _FileSize; }
            set { _FileSize = value; }
        }

        /// <summary>
        /// 偏移量 下标
        /// </summary>
        private long _OffsetIndex;
        [DataMember]
        public long OffsetIndex
        {
            get { return _OffsetIndex; }
            set { _OffsetIndex = value; }
        }

        /// <summary>
        /// 增量大小
        /// </summary>
        private long _IncrementSize;
        [DataMember]
        public long IncrementSize
        {
            get { return _IncrementSize; }
            set { _IncrementSize = value; }
        }

        /// <summary>
        /// 增量文件内容
        /// </summary>
        private byte[] _IncrementData;
        [DataMember]
        public byte[] IncrementData
        {
            get { return _IncrementData; }
            set { _IncrementData = value; }
        }

        /// <summary>
        /// 执行结果
        /// </summary>
        private ExecuteResult _Result= ExecuteResult.Error;
        [DataMember]
        public ExecuteResult Result
        {
            get { return _Result; }
            set { _Result = value; }
        }

        /// <summary>
        /// 是否由客户端构建路径
        /// </summary>
        private bool _IsClientBuilderPath;
        [DataMember]
        public bool IsClientBuilderPath
        {
            get { return _IsClientBuilderPath; }
            set { _IsClientBuilderPath = value; }
        }

        /// <summary>
        /// 客户端构建的路径
        /// </summary>
        private string _ClientBuilderPath;
        [DataMember]
        public string ClientBuilderPath
        {
            get { return _ClientBuilderPath; }
            set { _ClientBuilderPath = value; }
        }

        /// <summary>
        /// 文件类型
        /// </summary>
        private SpaceType _UpLoadFileType= SpaceType.Custom;
        [DataMember]
        public SpaceType UpLoadFileType
        {
            get { return _UpLoadFileType; }
            set { _UpLoadFileType = value; }
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        private string _CustomFolder;
        [DataMember]
        public string CustomFolder
        {
            get { return _CustomFolder; }
            set { _CustomFolder = value; }
        }

        /// <summary>
        /// 消息
        /// </summary>
        private string _Message;
        [DataMember]
        public string Message
        {
            get { return _Message; }
            set { _Message = value; }
        }
    }
}
